package com.xiaoshuidi.cloud.module.report.dal.DO;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.xiaoshuidi.cloud.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房态记录
 * </p>
 *
 * @author hans.zhang
 * @since 2023-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_state_record")
@Schema(description="房态记录")
public class RoomStateRecordDO extends BaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "房间ID")
    private Long roomId;

    @Schema(description = "房态")
    private String state;

    @Schema(description = "前一次房态")
    private String beforeState;

    @Schema(description = "是否当前房态")
    private Boolean isCurrentState;

    @Schema(description = "租户编号")
    private Long tenantId;

}
